package com.mihu.stmall.front.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

@Data
@ToString
@NoArgsConstructor
public class Category {

    private Integer id;
    private String name;
    private String dscp;
    private String pic;
    private Integer parentId;
    private Integer recom;
    private Integer status;

    //父分类信息  一对一
    private Category parent;
    //子分类信息  一对多
    private List<Category> children;
}
